import { defineComponent, computed, openBlock, createBlock, unref, normalizeStyle } from "vue";
import { IconButton } from "./index";
const _sfc_main = /* @__PURE__ */ defineComponent({
  __name: "icon-radio-button",
  props: {
    size: {},
    checked: { type: Boolean },
    type: {}
  },
  setup(__props) {
    const props = __props;
    const buttonStyle = computed(() => {
      const style = { flex: 1 };
      if (props.type !== 1) {
        style.borderLeftWidth = 0;
      }
      if (props.type === 1 || props.type === 2) {
        style.borderTopRightRadius = 0;
        style.borderBottomRightRadius = 0;
      }
      if (props.type === 3 || props.type === 2) {
        style.borderTopLeftRadius = 0;
        style.borderBottomLeftRadius = 0;
      }
      return style;
    });
    return (_ctx, _cache) => {
      return openBlock(), createBlock(unref(IconButton), {
        size: _ctx.size,
        type: _ctx.checked ? "primary" : "bordered",
        style: normalizeStyle(buttonStyle.value)
      }, null, 8, ["size", "type", "style"]);
    };
  }
});
export {
  _sfc_main as default
};
